[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread Bruce Horrocks
tupcounter to each use of \setupcounter, pass on the ones that apply to setupframed to each use of \setupframed and so on. Thsi is releatively easy in Lua where you could define a list of all possible commands and which macro they apply to then loop through it looking to see if that option had been

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
. short .. "]") > end > end > \stopluacode > \definebtx[aps:cite:special][aps:cite] > \startsetups btx:aps:cite:special > \btxcitereference > \ctxlua{render_cite([==[\btxflush{year}]==], [==[\btxflush{author}]==])} > \stopsetups > % use it with \

[NTG-context] Re: utiliydata

2024-04-24 Thread Hans Hagen
On 4/24/2024 5:41 PM, Thomas A. Schmitz wrote: Hi all, I’m slightly embarrassed because this should be easy, but I can’t figure out how to do this: in the tuc/tua file, I have the complete references of my document. How can I access it from within my Lua code? For instance, something like

[NTG-context] utiliydata

2024-04-24 Thread Thomas A. Schmitz
Hi all, I’m slightly embarrassed because this should be easy, but I can’t figure out how to do this: in the tuc/tua file, I have the complete references of my document. How can I access it from within my Lua code? For instance, something like utilitydata.structures.references.collected

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
author}]==])} \stopsetups % use it with \cite[special][knuth1] ``` This has several problems: - \btxflush{short} does not work as I expected that. How can I get the short form? - \btxflush to pass arguments to lua does not work as intended. On the lua side the variable "author"

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-16 Thread Henning Hraban Ramm
integration of Lua and MetaPost. --- ConTeXt was invented in the 1990s by Hans Hagen and Ton Otten of the Dutch company “Pragma Advanced Document Engineering” for typesetting schoolbooks. Taco Hoekwater refactored the TeX source code to create LuaTeX which was further developed into LuaMetaTeX

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-11 Thread Pablo Rodriguez via ntg-context
On 4/11/24 18:56, Hans Hagen via ntg-context wrote: > [...] >>> \protected\def\PrintTheThing{\ctxlua{document.print_the_thing()}} >> >> Sorry, but why \protected is required or recommended here? > > depends if you want it to be expandable I see now that "still.pdf" has a full chapter (#3, titled

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-11 Thread Hans Hagen via ntg-context
On 4/11/2024 5:07 PM, Pablo Rodriguez via ntg-context wrote: On 4/10/24 21:48, Hans Hagen via ntg-context wrote: On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: [...] I wonder whether there is a proper way in the Lua code to avoid [[\luaescapestring{}]] in \ctxlua

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-11 Thread Pablo Rodriguez via ntg-context
On 4/10/24 21:48, Hans Hagen via ntg-context wrote: > On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> I wonder whether there is a proper way in the Lua code to avoid >> [[\luaescapestring{}]] in \ctxlua. >> [...] > context(tokens.s

[NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua

2024-04-10 Thread Denis Maier via ntg-context
k? > > Hi Denis, > > as far as I know, this is required first: > > context --luatex --generate Thanks, Pablo. I've tried it, but it doesn't seem to work... I'm getting this: resolvers | resolving | resolvers | resolving | warning: no lua configuration files

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-10 Thread Hans Hagen via ntg-context
([[\luaescapestring{#1}]])}} \PrintTheThing{a \em b {c}} \stoptext I wonder whether there is a proper way in the Lua code to avoid [[\luaescapestring{}]] in \ctxlua. BTW, [[\luaescapestring{}]] in \ctxlua works better for me, since in my real world document, I’m using str:match() to check

[NTG-context] \luaescapestring in proper Lua

2024-04-10 Thread Pablo Rodriguez via ntg-context
wonder whether there is a proper way in the Lua code to avoid [[\luaescapestring{}]] in \ctxlua. BTW, [[\luaescapestring{}]] in \ctxlua works better for me, since in my real world document, I’m using str:match() to check whether the string ends with interrogation or exclamation marks

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Hans Hagen
sed to say it was in my own environment file, not in the lmtx distribution. I have a Lua function that prints information about the computer model and the operating system into a layer. Unfortunately, there was an "elseif" in there somewhere which should catch exceptions (such as a raspbe

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Thomas A. Schmitz
nment file, not in the lmtx distribution. I have a Lua function that prints information about the computer model and the operating system into a layer. Unfortunately, there was an "elseif" in there somewhere which should catch exceptions (such as a raspberry pi), but instead of concatenating the re

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Hans Hagen
On 4/7/2024 7:08 PM, Thomas A. Schmitz wrote: Hi everybody, this is bizarre, but hear me out: a file that I have has a mixture of xml, TeX and Lua. It compiles cleanly, no problem, on macos and linux. I also have a little raspberry pi on which I have installed lmtx. The file compiles

[NTG-context] Very bizarre bug

2024-04-07 Thread Thomas A. Schmitz
Hi everybody, this is bizarre, but hear me out: a file that I have has a mixture of xml, TeX and Lua. It compiles cleanly, no problem, on macos and linux. I also have a little raspberry pi on which I have installed lmtx. The file compiles, BUT: it has one additional page. The first page

[NTG-context] Re: error with \sc

2024-04-02 Thread Pablo Rodriguez via ntg-context
On 4/2/24 21:23, Mikael Sundqvist wrote: > On Tue, Apr 2, 2024 at 9:16 PM Peter Münster wrote: >> [...] >> TIA for any hints, > > Hans wrote in his email: > -- If you have troubles (crash) you need to wipe the cache due to a > change in lua bytecode storage (no easy wa

[NTG-context] Re: error with \sc

2024-04-02 Thread Mikael Sundqvist
t; > Test file: > \starttext > \sc test > \stoptext > > Is this a bug, or some misconfiguration of my installation? > > TIA for any hints, Hans wrote in his email: -- If you have troubles (crash) you need to wipe the cache due to a change in lua bytecode storage (no easy w

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
ch/master/snippets/language-context.cson There, I added information from the interface files and also from the wiki, if existing. I don’t know how to do that in the lua script. --- function flushers.pulsar(collected) for interface, whatever in next, collected do local commands = what

[NTG-context] Re: upload

2024-04-01 Thread Otared Kavian
he due to a change in lua bytecode storage (no easy way to catch it).Hans & Mikael-  Hans Hagen | PRAGMA ADE  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands   tel: 038

[NTG-context] Re: upload

2024-04-01 Thread Mikael Sundqvist
changes over time). What are > the demands, so that we can see how to make it work or just work around > it (as it's kind of boring to cook uyp complex features , esp compared > to playing with metapost). > > -- Furthermore .. the usual bits and pieces as discussed on the list and > otherwis

[NTG-context] upload

2024-04-01 Thread Hans Hagen
). -- Furthermore .. the usual bits and pieces as discussed on the list and otherwise. -- If you have troubles (crash) you need to wipe the cache due to a change in lua bytecode storage (no easy way to catch it). Hans & Mi

[NTG-context] Re: ConTeXt on RPI400

2024-03-26 Thread Andres Conrado Montoya
configuration files already identified > resolvers | resolving | skipping configuration file > 'selfautoparent:/texmf-context/web2c/texmfcnf.lua' (no valid format) > resolvers | resolving | no texmf paths are defined (using TEXMF) > resolvers | resolving | > mtxrun | the resolver databases are

[NTG-context] Re: ConTeXt on RPI400

2024-03-26 Thread hf
(no valid format) resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua:

[NTG-context] Re: ConTeXt on RPI400

2024-03-25 Thread Andres Conrado Montoya
ormat) > resolvers | resolving | no texmf paths are defined (using TEXMF) > resolvers | resolving | > mtxrun | the resolver databases are not present or outdated > resolvers | resolving | using suffix based filetype 'lua' > resolvers | resolving | remembering file 'mtx-context.lua'

[NTG-context] ConTeXt on RPI400

2024-03-25 Thread hf
| resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua

[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
t; ) ; draw luminosityshade ( (unitsquare scaled 2cm) shifted (7cm,1cm) ) ( withshademethod "circular" withshadecolors (.6,.1) ) ( withshademethod "circular" ) ; ) ; ; metapost> trace > pages > flushing realpage 4, userpage 4, subpage 4 close sourc

[NTG-context] Re: Japanese

2024-03-14 Thread Otared Kavian
Dear Otared, > > when you read the lua code in the first \directlua{}, you should realize that > the dimensions of almost all layout elements are depending on the value of my > lua variable "paperSize". > Thanks to defining the paper size first in lua, I can apply calculations

[NTG-context] Re: Japanese

2024-03-14 Thread Emanuel Han via ntg-context
Dear Otared, when you read the lua code in the first \directlua{}, you should realize that the dimensions of almost all layout elements are depending on the value of my lua variable "paperSize". Thanks to defining the paper size first in lua, I can apply calculations of nume

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-07 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 20:17: On 3/6/24 19:50, Wolfgang Schuster wrote: [...] Could you write the first line in plain language? Look at the second example of the Lua code in the example below for each command (the first example is your version), the third

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Pablo Rodriguez via ntg-context
On 3/6/24 19:50, Wolfgang Schuster wrote: >> [...] >> Could you write the first line in plain language? > > Look at the second example of the Lua code in the example below for each > command (the first example is your version), the third example is just a > condensed ver

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
. Sorry, I know it has to be simple, but the syntax is too cryptic for me. Could you write the first line in plain language? Look at the second example of the Lua code in the example below for each command (the first example is your version), the third example is just a condensed version of

[NTG-context] Re: missing metadata in LMTX

2024-03-05 Thread Wolfgang Schuster
because Hans changed they way how the values of the \setupinteraction commands are passed to Lua side of ConTeXt to be written to the PDF file. Many thanks for your reply and your explanation, Wolfgang. I can provide at the moment solutions which ensure the information appear in the PDF but none

[NTG-context] Re: missing metadata in LMTX

2024-03-03 Thread Pablo Rodriguez via ntg-context
hey way > how the values of the \setupinteraction commands are passed to Lua > side of ConTeXt to be written to the PDF file. Many thanks for your reply and your explanation, Wolfgang. > I can provide at the moment solutions which ensure the information > appear in the PDF but none of the is ver

[NTG-context] Re: missing metadata in LMTX

2024-03-03 Thread Wolfgang Schuster
or explain me what I am missing I can confirm the issue and it happens because Hans changed they way how the values of the \setupinteraction commands are passed to Lua side of ConTeXt to be written to the PDF file. I can provide at the moment solutions which ensure the information appear in the PDF

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 28.02.2024 um 19:02: On 2/28/24 12:24, Pablo Rodriguez via ntg-context wrote: [...] This is why beforequadruple would make sense. I guess some Lua magic could do that, computing x to the follwing page that "x % 4 = 3" (and then \page[x]).

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
On 2/28/24 12:24, Pablo Rodriguez via ntg-context wrote: > [...] > This is why beforequadruple would make sense. I guess some Lua magic > could do that, computing x to the follwing page that "x % 4 = 3" (and > then \page[x]). > > I will try to find a trick for

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
the last]) penultima page of a booklet. This is why beforequadruple would make sense. I guess some Lua magic could do that, computing x to the follwing page that "x % 4 = 3" (and then \page[x]). I will try to find a t

[NTG-context] Re: FreeBSD 13.2

2024-02-26 Thread Roger Mason
or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-contexts

[NTG-context] Re: FreeBSD 13.2

2024-02-26 Thread Roger Mason
(no valid format) resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | mtxrun | elapsed lua time: 0.041 seconds Looks like the unset TEXMF and TEXMFCNF envars are a problem. What should they be set to

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
∑ tex error > tex error on line 85 in file ./IntroEstadísticaNP.tex: lua error: registered function call [250]: ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:750: attempt to index a nil value (local 'a2') stack traceback: ...mtx/tex/texmf-context/

[NTG-context] Re: FreeBSD 13.2

2024-02-25 Thread Roger Mason
texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | mtxrun | elapsed lua time: 0.045 seconds I infer something (possibly a lot) is missing that the install.sh normally sets up. Thanks, Roger ___

[NTG-context] Re: using an end of line as parameter

2024-02-21 Thread Bruce Horrocks
> On 21 Feb 2024, at 08:17, madiazm.eo...@gmail.com wrote: > > Thanks a lot Bruce, that did the trick! definitely I will have to learn a bit > lua in summer. > I just got an error on \qquad and found searching in internet that it was > because escape character conflicts b

[NTG-context] Re: using an end of line as parameter

2024-02-21 Thread madiazm . eoicc
Thanks a lot Bruce, that did the trick! definitely I will have to learn a bit lua in summer. I just got an error on \qquad and found searching in internet that it was because escape character conflicts between tex and lua. For the time i removed it and since I will create itemizes I hope I dont

[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread Bruce Horrocks
see my definition is: \def\tareaAbc #1ñ#2ñ#3ñ#4ñ{...context formating > for each #)}; Its the clue to pass each sentence as an independent argument > that I don't get to work. > thanks again > A variation on Hans original suggestion is to use a buffer instead of a separate text f

[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread Hans Hagen
On 2/20/2024 12:26 PM, madiazm.eo...@gmail.com wrote: Thanks Hans, I supposed that lua would be more suitable, but unfortunately I still did not learn it (I hope in summer I have time to read the manual) The problem arises from the fact that for each line i will perform a different action

[NTG-context] Re: using an end of line as parameter

2024-02-20 Thread madiazm . eoicc
Thanks Hans, I supposed that lua would be more suitable, but unfortunately I still did not learn it (I hope in summer I have time to read the manual) The problem arises from the fact that for each line i will perform a different action and for \def\foo I need four arguments so that I can

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Hans Hagen
as changed in recent upload, that memory > consumption is about 60% of earlier versions. it's hard to tell what exact consumpiton is becaue for instance when lua creates tables, they grow by factors two when then have to (maybe 5.5 i

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Shiv Shankar Dayal
curious about what has changed in recent upload, that memory >> > consumption is about 60% of earlier versions. >> it's hard to tell what exact consumpiton is becaue for instance when lua >> creates tables, they grow by factors two when then have to (maybe 5.5 is >> a

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Shiv Shankar Dayal
what has changed in recent upload, that memory > > consumption is about 60% of earlier versions. > it's hard to tell what exact consumpiton is becaue for instance when lua > creates tables, they grow by factors two when then have to (maybe 5.5 is > a bit less consuming) > > on

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Hans Hagen
to tell what exact consumpiton is becaue for instance when lua creates tables, they grow by factors two when then have to (maybe 5.5 is a bit less consuming) on the one hand luametatex is more efficient than luatex due to all kind of ímprovements' but some nodes are larger so that takes more memory

[NTG-context] behaviour sy in externalfigure

2024-02-16 Thread Hans van der Meer via ntg-context
sy=1.001 in order to get the original height. Although not to difficult with a jump to Lua code, I would prefer not.yours sincerelydr. Hans van der Meer\starttext\ConTeXt\space version \contextversion\blank\type{\externalfigure[testfile.jpg]} source figure\crlf\externalfigure[testfile.jpg]\crlf\t

[NTG-context] Installation of linux-32bits

2024-02-15 Thread Alain Delmotte
/alain' resolvers   | resolving | variable 'TEXMFCNF' set to '' resolvers   | resolving | variable 'TEXMF' set to '' resolvers   | resolving | variable 'TEXOS' set to 'context' [...] resolvers   | resolving | resolvers   | resolving | warning: no lua configuration files found

[NTG-context] Re: upload

2024-02-15 Thread Hans Hagen
On 2/15/2024 10:02 AM, luigi scarso wrote: On Wed, 14 Feb 2024 at 13:47, Hans Hagen wrote: Hi, as we're around texlive code freeze time we're also in upload mode - i uploaded a new lmtx - i also added linux and windows 32 bin (as it seems to have users) - we're now using lua 5.5 which has

[NTG-context] Re: upload

2024-02-15 Thread Mikael Sundqvist
Hi, The 5.5 seems to come from https://github.com/lua/lua/blob/master/lua.h /Mikael On Thu, Feb 15, 2024 at 10:04 AM luigi scarso wrote: > > On Wed, 14 Feb 2024 at 13:47, Hans Hagen wrote: > > > > Hi, > > > > as we're around texlive code freeze time we're a

[NTG-context] Re: upload

2024-02-15 Thread luigi scarso
On Wed, 14 Feb 2024 at 13:47, Hans Hagen wrote: > > Hi, > > as we're around texlive code freeze time we're also in upload mode > > - i uploaded a new lmtx > - i also added linux and windows 32 bin (as it seems to have users) > > - we're now using lua 5.5 which has o

[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-02-14 Thread Mikael Sundqvist
all.sh"...) > > can you copy the 'bad line' in the mail > > > > (there's also a mtxrun.lua in scripts/context/lua) > > > > Hans > > > > - > >

[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-02-14 Thread Mikael Sundqvist
the command line to rebuild mtxrun locally without downloading > > update from internet ? > > (I only know "sh install.sh"...) > can you copy the 'bad line' in the m

[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-02-14 Thread Hans Hagen
'bad line' in the mail (there's also a mtxrun.lua in scripts/context/lua) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038

[NTG-context] Re: An announcement of my new book.

2024-02-14 Thread Joaquín Ataz López
to utilize low level typesetting features for anything more sophisticated than a simple book or article. By lower level, I mean how things like heads, items, references, alignment, tables, etc., work. Also, I would like a book that teaches things like how to program it using lua, how to understand

[NTG-context] Fwd: Re: Context lmtx for 32bit under LUBUNTU 18.04

2024-02-14 Thread Henning Hraban Ramm
some 2-3MB) tex/texmf-/bin/mtxrun : copy of or link to luametatex tex/texmf-/bin/context    : copy of or link to luametatex tex/texmf-/bin/mtxrun.lua : copy of tex/texmf-context/scripts/context/lua/mtxrun.lua tex/texmf-/bin/context.lua    : copy of tex/texmf-context/scripts/

[NTG-context] upload

2024-02-14 Thread Hans Hagen
Hi, as we're around texlive code freeze time we're also in upload mode - i uploaded a new lmtx - i also added linux and windows 32 bin (as it seems to have users) - we're now using lua 5.5 which has one restriction (was already announced a while ago): for i=1,10 in t do i = 2

[NTG-context] Re: An announcement of my new book.

2024-02-13 Thread Peter Hopcroft via ntg-context
that is more of an index to the existing documentation that is not out of date, with perhaps some simple examples. One case that comes to mind is to pass a couple of numbers to Lua, have it do a calculation and use the result in Context. Regards, Peter > On 14/02/2024, at 9:03 AM, Sir Coleman via

[NTG-context] Re: removing whitespace

2024-02-13 Thread Wolfgang Schuster
Michael Guravage schrieb am 13.02.2024 um 14:01: While reading the documentation I spotted something similar from which I derived this solution: \setupinteraction[state=start] \def\squeeze#1%   {     \goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", "")

[NTG-context] An announcement of my new book.

2024-02-11 Thread SirColeman via ntg-context
how to program it using lua, how to understand and utilize the underlying engine itself (the low level LuaMetaTeX), how to even use DocBook with ConTeXt, etc. (I do realize that there already are manuals for lua in ConTeXt and on LuaMetaTeX, etc., and manuals on various different parts of ConTeXt

[NTG-context] color profiles

2024-02-07 Thread Henning Hraban Ramm
add my own profiles to the distributed set in colorprofiles.xml? Should I provide a colorprofiles.xml or .lua in texmf-local? Hraban ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Wolfgang Schuster
Gerion Entrup schrieb am 25.01.2024 um 09:18: Hi, I want to make a proper definition of a new command to be able to process it in Lua. I found something on StackOverflow [1] but that breaks in enumeration _and_ when interaction is enabled and I do not understand why? Can you give me some help

[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-01-29 Thread Taco Hoekwater
(as in listing the available installed ibmplex fonts) > > > mtxrun --script font --list --spec --filter="fontname=*" > mtxrun --script font --list --spec --filter="fontname=p*" > mtxrun --script font --list --spec --filter="fontname=pl*" > > lua e

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Taco Hoekwater
Hi, You can try: > \unexpanded\def\do_my_command[#1]#2{% But there is probably a cleaner way to implement optional arguments with lua? Best wishes, Taco > On 25 Jan 2024, at 09:18, Gerion Entrup wrote: > > Hi, > > I want to make a proper definition of a new command to be

[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-01-28 Thread vm via ntg-context
="fontname=*" mtxrun --script font --list --spec --filter="fontname=p*" mtxrun --script font --list --spec --filter="fontname=pl*" lua error : function call: /home/vm/context/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument #9 to 'format' (number expected, got string

[NTG-context] mtxrun.lua:10080: bad argument #9 to 'format'

2024-01-28 Thread Garulfo
Hi, return is OK with:     mtxrun --script font --list --spec --filter="fontname=ibm*" but removing the m from the pattern mtxrun --script font --list --spec --filter="fontname=ib*" I get : lua error : function call: ...0-app_context-linux-64/tex/texmf-linux-64/bin/m

[NTG-context] Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-25 Thread Gerion Entrup
Hi, I want to make a proper definition of a new command to be able to process it in Lua. I found something on StackOverflow [1] but that breaks in enumeration _and_ when interaction is enabled and I do not understand why? Can you give me some help here? I want to make commands like \foo{bla

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-19 Thread Hans Hagen
because the ages of dohbling performance every year are past. There are several factors that impact performance: tex engine : quite a bit faster in luametatex mp engine : quite a bit faster in luametatex lua engine : not much we can do about but inefficient macros and usage can offset any gain

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Henning Hraban Ramm
/manuals/musings.pdf#page=96 might explain why Lua(Meta)TeX is slower. Other chapters in that document from Hans might give you some insight on the reasons why LMTX has to pay a price for being more feature-rich. I got such impression when I read it. Just in case it might help, In comparison to LaTeX

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Pablo Rodriguez via ntg-context
self) may be optimized for speed. Your math book may use features (I’m guessing again) that require more resources than the features used by “The TeXbook”. > Why LuaMetaTeX is so slow? How can I speed it up? https://www.pragma-ade.com/general/manuals/musings.pdf#page=96 might explain why

[NTG-context] Suggestions and problems of the manuals

2024-01-17 Thread Gerion Entrup
close source> level 1, order 3, name './math-mkiv-t-b-ce3b35636ef01ee62897a2beb76049e0.tmp' backend > xmp > using file '/home/gerion/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua

[NTG-context] Re: issue with fonts in current latest (2024.01.08 11:23)

2024-01-15 Thread Henning Hraban Ramm
Am 15.01.24 um 18:16 schrieb Pablo Rodriguez via ntg-context: I guess there might be an issue here. Could anyone confirm this? Yes, same beta from last week (2024.01.08). No error in the console output. mkiv lua stats > loaded fonts: 4 files: latinmodernmath-companion.otf, latinmod

[NTG-context] Re: font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
Am 13.01.24 um 19:43 schrieb Henning Hraban Ramm: (LMTX, latest beta with self-compiled binary on OSX-intel.) With my book, I run into an Lua error while placing a sidefloat. If I comment \externalfigure or replace the image with a different one, the error disappears. I can’t reproduce

[NTG-context] font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
(LMTX, latest beta with self-compiled binary on OSX-intel.) With my book, I run into an Lua error while placing a sidefloat. If I comment \externalfigure or replace the image with a different one, the error disappears. I can’t reproduce it in a minimal example, so I guess it depends

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Shiv Shankar Dayal
sibly add that in Wiki. I do not know Lua, and I am too old to learn another programming language. These days, I program only in Rust/Javascript. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to other

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Gavin via ntg-context
, tkz-elements.sty. Everything else is written in Lua. I think we could write a simple ConTeXt environment file that would replace tkz-elements.sty, making all of the tikz-elements package available for MetaFun rather than TikZ. This would not give you the pretty drawing features of tikz-euclide

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Shiv Shankar Dayal
than that.) > > If there isn’t a MetaPost package for what you want, Lua may be useful for > doing the calculations. > > Gavin > > ___ > If your question is of interest to others as well, pleas

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Gavin via ntg-context
d it beyond than that.) If there isn’t a MetaPost package for what you want, Lua may be useful for doing the calculations. Gavin ___ If your question is of interest to others as well, please add an entry to the Wiki! mailli

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread Henning Hraban Ramm
hat it's not clear which words I should be looking at. Ask yourself: what word(s) do I want the viewer to remember when they walk away? 6. Consider swapping the TeX and MetaPost circles so that Lua, MetaPost and TeX are read left to right as they appear in the acronym LMTX. Perhaps invert the &

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread Bruce Horrocks
e.g. what is the distinction between the 'source' (lua tex) and the > 'resources' (fonts icc lib) and the 'frontend' (tex xml png ...mp) > (no lua?) Agreed. In no particular order: 1. "ConTeXt" should be the biggest word - or as an obvious title for the poster, away from the

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread Henning Hraban Ramm
Am 11.01.24 um 20:15 schrieb vm via ntg-context: On 11/01/2024 19:52, Henning Hraban Ramm wrote: Here’s a preliminary schema of LMTX. What do you think? as is, it is difficult to understand where to look. what does is describe? e.g. what is the distinction between the 'source' (lua tex

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread vm via ntg-context
On 11/01/2024 19:52, Henning Hraban Ramm wrote: Here’s a preliminary schema of LMTX. What do you think? as is, it is difficult to understand where to look. what does is describe? e.g. what is the distinction between the 'source' (lua tex) and the 'resources' (fonts icc lib

[NTG-context] Re: Metapost docs

2024-01-11 Thread Shiv Shankar Dayal
or \startMPpage…\stopMPpage, so that it can be typeset > as-is. > > If you want to do 3D, you may want to get Lua involved for calculations. I > use > > - Programming in LuaTeX page on the wiki ( > https://wiki.contextgarden.net/Programming_in_LuaTeX) > - Programming in Lua, 4t

[NTG-context] Re: Metapost docs

2024-01-11 Thread Gavin via ntg-context
…\stoptext or \startMPpage…\stopMPpage, so that it can be typeset as-is. If you want to do 3D, you may want to get Lua involved for calculations. I use - Programming in LuaTeX page on the wiki (https://wiki.contextgarden.net/Programming_in_LuaTeX) - Programming in Lua, 4th ed. by Roberto Ierusalimschy

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-10 Thread Henning Hraban Ramm
card memory” patterns as a background (thanks, Hans!). I tried to sketch the relationship of Lua/TeX/MetaPost in LuaMetaTeX and ConTeXt LMTX around it, with different inputs and PDF/XML output – don’t know yet how to make this easily understandable… ConTeXt is interesting for people

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-10 Thread Hans Hagen via ntg-context
. It is hard to come up with a good idea. Who is targeted? ConTeXt is interesting for people that want to integrate a typesetting system in a publishing environment, because ConTeXt does not stand in your way as LaTeX often do and has many programming features (lua, xml ...) or typeset very

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-09 Thread juh via ntg-context
a good idea. Who is targeted? ConTeXt is interesting for people that want to integrate a typesetting system in a publishing environment, because ConTeXt does not stand in your way as LaTeX often do and has many programming features (lua, xml ...) or typeset very customized layouts. These two t

[NTG-context] Re: vim syntax highlighting bug?

2024-01-09 Thread Gerion Entrup
xt and > makes Vim stay in Lua mode when it should go back to ConTeXt mode (I’m > not too savvy of the details). > > The maintainer came up with a workaround [1] to force returning to > ConTeXt mode, although the parenthesis remains highlighted as an error. > > That highli

[NTG-context] Lua and inject.path to make a disconnected MetaPost path?

2024-01-08 Thread Gavin via ntg-context
Hello LuaMetaFun Fans, Can I use mp.inject.path in Lua to create a disconnected path in MetaPost? This is for my module that draws globes. I currently do something like this for drawing the continents. (This MWE has two triangular continents.) \startluacode continents = {} continents[1

[NTG-context] Re: vim syntax highlighting bug?

2024-01-08 Thread Vincent Hennebert
by other syntax files. It somehow steals the syntax context and makes Vim stay in Lua mode when it should go back to ConTeXt mode (I’m not too savvy of the details). The maintainer came up with a workaround [1] to force returning to ConTeXt mode, although the parenthesis remains highlighted

[NTG-context] Re: vim syntax highlighting bug?

2024-01-06 Thread Christian Prim via ntg-context
... Hope it helps Christian Am Sa., 6. Jan. 2024 um 13:04 Uhr schrieb Damien Thiriet via ntg-context < ntg-context@ntg.nl>: > Hello, > > > Happy New Year! > > I got into a bug in my Vim syntax highlighting version. > Highlight stays in lua mode after ctxlua macro is clo

[NTG-context] vim syntax highlighting bug?

2024-01-06 Thread Damien Thiriet via ntg-context
Hello, Happy New Year! I got into a bug in my Vim syntax highlighting version. Highlight stays in lua mode after ctxlua macro is closed. Here is a MWE, where «this should not be highlitghted as a comment indeed is. \starttext Hello! \ctxlua{context("does the parser work?")} -- t

[NTG-context] Re: 2024

2024-01-02 Thread Willi Egger
ears > gimmick: > > https://www.pragma-ade.nl/2023 > > Of course it screams metapost but tex and lua are also involved. See it as > compensation for the lack of an end-of-year update. The last page of the > result

[NTG-context] Re: 2024

2024-01-02 Thread Fabrice L
Dear Hans, > Le 2 janv. 2024 à 05:35, Hans Hagen via ntg-context a > écrit : > > On 1/1/2024 3:33 PM, vm via ntg-context wrote: >> On 01/01/2024 13:28, Hans Hagen wrote: >>> Of course it screams metapost but tex and lua are also involved. See it as >>>

[NTG-context] Re: 2024

2024-01-02 Thread Hans Hagen via ntg-context
On 1/1/2024 3:33 PM, vm via ntg-context wrote: On 01/01/2024 13:28, Hans Hagen wrote: Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit of explanation. Beautiful indeed

  1   2   3   4   5   6   7   8   9   10   >